<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="YES">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<meta content="telephone=no" name="format-detection" />
<title>分享</title>
</head>
<style>
	body {
		margin: 0px;
		padding: 0px;
		font-family: "微软雅黑"
	}
	.toux{
		height: 65px;
		width: 100%;
	}
	.name{
	float: left;
    font-size: 15px;
    margin-top: 12px;
    margin-left: 10px;
    width: 70%;
	}
	.time{
	float: left;
    font-size: 8px;
    margin-top: 4px;
    margin-left: 10px;
    width: 70%;
    color:#a7a7a7; 
    word-break: break-all;
	}
	
	.comment{
		width: 100%;
		height: 65px;
		border-bottom: 1px solid;
		border-bottom-color: #e5e5e5;
	}
	
	.con{
	float: left;
    font-size: 15px;
    margin-top: 5px;
    margin-left: 10px;
    width: 70%;
    color:#a7a7a7; 
    word-break: break-all;
	}
	
	.content{
	margin-right:10px;
	word-break: break-all;
	margin-left: 10px;
	margin-top: 5px;
	font-size: 15px;
	
	}
	.video{
	width: 100%;
/* 	height: 375px; */
	margin-bottom: 10px;
	}
	.vid{
    width: 100%;
    height: 375px;
	}
</style>
<body>
	<div class="toux">
		<img src="http://139.196.188.251:8080/upload/cache/${user.portrait}" style="height: 50px;width: 50px; margin-top: 8px;margin-left: 8px;float: left;border-radius:5px;">
		<div class="name">${user.user_name}</div>
		<div class="time">发布于<fmt:formatDate value="${ momentInfo.create_time }" pattern="yyyy/MM/dd HH:mm:ss" type="date" dateStyle="long" /></div>
	</div>
	<div class="video">
		<video class="vid" autoplay="true" id="player" src="http://139.196.188.251:8080/upload/${momentInfo.video }"
		controls x-webkit-airplay="allow" webkit-playsinline="YES" poster="${pics }">
		</video>
	<div class="content">${momentInfo.content }</div>	
	</div>
	<c:forEach items="${ comments }" var="l" varStatus="st">
	<div class="comment">
		<img src="http://139.196.188.251:8080/upload/cache/${l.user.portrait }"style="height:50px;width: 50px; margin-top: 8px;margin-left: 8px;float: left;border-radius:5px;">
		<div class="name">${l.user.user_name }</div>
		<div class="con">${l.content }</div>
	</div>
	</c:forEach>
</body>
</html>